<ion-view view-title="发送挑战信">
    <ion-content>
        <div class="list send-email battle-item">
            <div class="item">
                <label class="item item-input">
                    <i class="icon ion-search placeholder-icon"></i>
                    <input type="text" data-ng-model="query.name"
                           ng-click="doQeury()" data-ng-change="doQeury()" placeholder="搜索收信人"/>
                </label>
                <ul class="list" data-ng-show="showQueryResult">
                    <li class="item" ng-repeat="user in query.result" ng-click="doCheckUser(user)">{{user.name}}</li>
                </ul>
            </div>
            <div class="item">
                <div class="item item-input">
                    <span class="input-label text-left" style="width:80px;">收件人:</span>
                    <span ng-repeat="user in receivers" style="margin-right:6px;"
                       ng-click="doUnCheckUser(user)">{{user.name}}<i class="ion ion-android-close"></i>
                    </span>
                </div>
                <label class="item item-input item-area">
                    <textarea rows="5" data-ng-model="letter.text" placeholder="输入内容"></textarea>
                </label>
            </div>
            <div class="item battle-bar">
                <a class="button-positive" data-ng-click="sendLetter()"><i class="ion "></i>发送</a>
            </div>
        </div>
    </ion-content>
</ion-view>
